package xyz.xpman.prisonerfitness.adapter;

import android.app.Activity;
import android.os.Build;
import android.view.View;

import androidx.annotation.RequiresApi;

import org.jetbrains.annotations.NotNull;

import java.util.List;

import xyz.xpman.prisonerfitness.R;
import xyz.xpman.prisonerfitness.entity.TrainingRecord;

@SuppressWarnings("unused")
@RequiresApi(api = Build.VERSION_CODES.O)
public class TrainingRecordAdapter extends MyBaseAdapter<TrainingRecord, TrainingRecordCache> {

    public TrainingRecordAdapter(@NotNull Activity context, int templateId, @NotNull List<TrainingRecord> items){
        super(context, templateId, items);
    }


    @Override
    protected TrainingRecordCache processViewCache(View viewCache) {
        return TrainingRecordCache.by(
                viewCache.findViewById(R.id.date),
                viewCache.findViewById(R.id.title),
                viewCache.findViewById(R.id.moves_flag_img),
                viewCache.findViewById(R.id.training_total_time),
                viewCache.findViewById(R.id.training_total_times),
                viewCache.findViewById(R.id.training_total_groups));
    }

}
